<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\Draw;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "count" => $this->count,
            "prize_id" => $this->reward->id,
            "prize" => \App\Resource\LotteryTurntable\Prize\Resource::make($this->reward),
        ];
    }
}